from xgoedu import XGOEDU
import time
dog = XGOEDU()
# 图片情绪识别，指定图片的相对路径
# imgPath = "./img/face-ai.png"  
# 图片的绝对路径
# imgPath = "/home/pi/xgoPictures/face-ai.png"
# imgPath = "face-ai.png"  # 报错演示，查看源码。
# getemotion = dog.emotion(imgPath)
# print(getemotion)




# 性别识别-图片
# infos = dog.agesex(imgPath)
# print(infos)
# 性别识别-摄像头
# infos = dog.agesex()
# print(infos)

# dog.xgoTakePhoto('good')

#---手势识别

# imghand = './img/good.jpg'
imghand = '/home/pi/xgoPictures/r-good.jpg'
# result = dog.gestureRecognition()
# print(result)

# result1 = dog.gestureRecognition(imghand)
# print(result1)
# r = dog.gestureRecognition("/home/pi/xgoPictures/good.jpg")
# print(r)
